package com.xxx.blog.mapper;
import com.xxx.blog.domain.Article;
import com.xxx.blog.query.ArticleQuery;
import com.xxx.blog.dto.ArticleTimeDTO;

import java.util.List;

public interface ArticleMapper {
    List<Article> findAll();
    //根据id查询
    Article findOne(Long id);
    //分页查询
    List<Article> findByPage(ArticleQuery articleQuery);
    //修改
    void updateById(Article article);
    //增加数据
    void insert(Article article);
    //删除用户
    void deleteById(Long id);
    //批量删除
    void  bathArticles(Long[] ids);

    List<ArticleTimeDTO> articleTimeSta();

    List<Article> getRA(Long id);

    List<Article> getArticlesByTypeID(Long id);

    List<Article> articleTimeStaByTime(String time);
}
